//
//  ALButton.h
//  Wutuojia
//
//  Created by Work on 15/7/19.
//  Copyright (c) 2015年 Work. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ALMacro.h"
typedef enum {
	ALImgUp_type,
	ALImgDown_type,
    ALImgRight_type,
}AlignmentEnum;

typedef void (^ALButtonClick_block)(id sender);

@interface ALButton : UIButton
@property (nonatomic,copy) ALButtonClick_block theBtnClickBlock;
//-(void)setFrame:(CGRect)frame
//         andTit:(NSString *)tit
//   andGoImgView:(NSString *)imgName;
/**
 *  当图片和文字上下居中时调用，并且，设置值后，才调用
 */
-(void)setAlignment;

-(void)setAlignment:(AlignmentEnum)type;


///**
// *  矫正Width
// */
//- (void)correctWidth;
//
//- (void)setImageWithURLStr:(NSString *)url
//       placeholderImageStr:(NSString *)placeholder
//                  forState:(UIControlState)theState;
//- (void)setImageWithURLStr:(NSString *)url
//                  forState:(UIControlState)theState;
//- (void)setImageWithURLStr:(NSString *)url type:(ALImgEnum)type;
//- (void)setImageWithURLStr:(NSString *)url size:(CGSize)size;
//- (void)setImageWithURLStr:(NSString *)url type:(ALImgEnum)type tit:(NSString *)tit;
//- (void)setImageWithURLStr:(NSString *)url size:(CGSize)size tit:(NSString *)tit;
//- (void)setImageWithURLStr:(NSString *)url size:(CGSize)size tit:(NSString *)tit andModel:(UIViewContentMode)contentModel;
//- (void)setImageWithURLStr:(NSString *)url type:(ALImgEnum)type andModel:(UIViewContentMode)contentModel;

- (void)setTitAndImg:(NSString *)tit;
@end
